package com.cn.wanxi.service;

import com.cn.wanxi.dao.CompanyDao;
import com.cn.wanxi.model.CompanyModel;

/**
 * 数据逻辑层
 */
public class CompanyService {
    /**
     * 封装公司信息，返回公司对象
     *
     * @return
     */
    public CompanyModel getCompanyModel() {

        CompanyModel companyModel = new CompanyModel();
        CompanyDao companyDao = new CompanyDao();
        companyModel.setLogo(companyDao.logo);
        companyModel.setPhone(companyDao.phone);
        companyModel.setNet(companyDao.net);
        companyModel.setEmail(companyDao.email);
        companyModel.setLinePhone(companyDao.linePhone);
        companyModel.setAddress(companyDao.address);
        companyModel.setVersion(companyDao.version);
        return companyModel;
    }
}
